package com.dragon.datastructure.queue;

/**
 * 循环队列测试
 *
 * @author dragon
 * @since 2019/12/17
 */
public class LoopQueueTest {

    public static void main(String[] args) {
        LoopQueue loopQueue = new LoopQueue();
        for (int i = 10; i < 200; i++) {
            loopQueue.enqueue(i);
        }
        System.out.println(loopQueue);
        System.out.println("loopQueue是否已满:" + loopQueue.isFull());
        System.out.println("loopQueue的容量:" + loopQueue.getCapacity());
        for (int i = 0; i < 180; i++) {
            loopQueue.dequeue();
        }
        System.out.println("loopQueue元素个数:" + loopQueue.size());
        System.out.println("loopQueue的容量:" + loopQueue.getCapacity());
    }
}
